Implementation of the Java decompression technology GZIP ZIP BZIP2Unlike Gzip ZIP, BZIP2 is not implemented in Java, BZIP2 implementations are provided by Apache Commons-compress.jar.About Commons Compress please visit:
14.3. File compression and archiving
Sometimes we need to store a set of files in a single file for backup or transfer to another directory or even another computer. Sometimes we also need to compress files into one file, so they use only a small
1. First import Bzip2.jar in the project; (Download address: http://download.csdn.net/detail/majian_1987/5997697)
2. Download Jzlib source code Zip package, extract, and then copy all com.jcraft.jzlib.* Java files to the project (even with a Java
A few common zip file extensions
*. Z Compress program compressed files. *.GZ gzip Program compresses the file. *.BZ2 bzip2 Program compressed files, *.tar tar program packaged data, and not compressed;
A few common zip file extensions
*. Z Compress program compressed files; *.gz gzip program compressed files; *.bz2 bzip2 Program compressed files; *.tar tar program packed data, not compressed; *.tar.gz
Download the source file installation package: www.bzip.orgdownloads.html Unzip: download the source file installation package:
Http://www.bzip.org/downloads.html
Decompress:
Tar-xzvf bzip2-1.0.6.tar.gz
Enter the decompressed Directory:
Cd
Tar commandcommand function to compress and decompress filescommand format tar[necessary parameters [select parameters] [file]Tar Packaging tools -F # #指定生成包的名字, it is recommended that-F be written separately as a parameter --delete
1, has compiled the packing good xxx.rpm
If your Linux system has a setup program, it is best to install it with the system's own installer. For example, SuSE YaST2 with installation procedures, in the KDE environment as long as the RPM, you
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.